package com.hanhai.material.device.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 *  实体类。
 *
 * @author youchuang
 * @since 2024/05/09 22:05:30
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "sys_bad_record1",dataSource = "device")
public class SysBadRecord1 implements Serializable {

    @Id(keyType = KeyType.Auto)
    @ApiModelProperty("")
    private Integer id;

    @ApiModelProperty("")
    private String workShopName;

    @ApiModelProperty("")
    private String workShop;

    @ApiModelProperty("")
    private String shift;

    @ApiModelProperty("")
    private String shiftCode;

    @ApiModelProperty("")
    private String machineName;

    @ApiModelProperty("")
    private String reasonType;

    @ApiModelProperty("")
    private Integer reasonTypeId;

    @ApiModelProperty("")
    private String reasonType1;

    @ApiModelProperty("")
    private Integer reasonTypeId1;

    @ApiModelProperty("")
    private Integer reasonId;

    @ApiModelProperty("")
    private String reasonName;

    @ApiModelProperty("")
    private Integer num;

    @ApiModelProperty("")
    @Column(onInsertValue = "now()")
    private Date submissionTime;

    @ApiModelProperty("")
    private Date productDate;

    @ApiModelProperty("")
    private String summary;

    @ApiModelProperty("")
    private String workPlanId;

    @ApiModelProperty("")
    private String productName;

    @ApiModelProperty("")
    @Column(onInsertValue = "now()")
    private Date createTime;

    @ApiModelProperty("")
    @Column(onUpdateValue = "now()")
    private Date updateTime;

    @ApiModelProperty("")
    private String productRecordId;

    @ApiModelProperty("")
    private String createUserId;

    @ApiModelProperty("")
    private String productId;

    @ApiModelProperty("")
    private String createUserName;

    @ApiModelProperty("")
    private String shortName;

    @ApiModelProperty("")
    private String updateUserId;

    @ApiModelProperty("")
    private String updateUserName;

    private String preLineManagerName;

    private String preLineManagerId;
    private Date preProductDate;

}
